Script: --on windowEvent wdID,wdName,objNo,objName,objValue┬┬if objValue="Open" then ┬ get wsGet("Help","Text","Height")┬ put it into theHeight┬ put "7,"&(theHeight+23) into tt┬ wsSet wdID,"8","TopLeft",tt┬ wsSet "Help","Topics","Height", theHeight┬ put 0 into daScroll┬ get wsGet("Help","Topics","Selection")┬ put it into theSel┬ put theHeight/12 into theLines -- # lines visible?┬ put round(theSel-theLines) into temp┬ if temp>0 then put (temp+1) into daScroll┬ wsSet wdID,"Topics","Scroll",daScroll┬ ┬else if objValue="Close" then ┬ global windoidRect┬ get wsGet("Help","0","Rect")┬ put it into line 1 of windoidRect┬ saveLocs┬ ┬else if objValue="CloseBox" then ┬ ┬else if objValue="GrowBox" then ┬ get wsGet("Help","Text","Height")┬ put it into theHeight┬ put "7,"&(theHeight+23) into tt┬ wsSet wdID,"8","TopLeft",tt┬ wsSet "Help","Topics","Height", theHeight┬ put 0 into daScroll┬ get wsGet("Help","Topics","Selection")┬ put it into theSel┬ put theHeight/12 into theLines -- # lines visible?┬ put round(theSel-theLines) into temp┬ if temp>0 then put (temp+1) into daScroll┬ wsSet wdID,"Topics","Scroll",daScroll┬ ┬end if┬┬--end windowEvent
Params: i2_Text┬i2_SelectionText┬i3_Text┬i0_Rect
ItemType: TEXT
Rect: 45,4,190,16
TextFont: Geneva
TextSize: 9
Name: instr
Text: (click on a topic to see its help)
ItemType: LIST
Rect: 7,21,195,142
TextFont: Geneva
TextSize: 9
AutoSize: FALSE
Name: Topics
KeyScroll: TRUE
Text:
Script: --on mouseUp wdID,wdName,objNo,objName,objValue┬get wsGet(wdID,"Topics","Selection")┬if it¡empty then┬ wsSet wdID,"Text","Text",(fld "helpText" of cd it of bg "help")┬ wsSet wdID,"Text","Scroll", "0"┬ if the optionKey is down then -- go to help cd to edit┬ visual checkerboard fast┬ go cd it of bg "help"┬ end if┬end if┬┬--end mouseUp┬
ItemType: TEXT
Rect: 208,22,395,143
TextFont: Geneva
TextSize: 9
AutoSize: FALSE
GrowItem: TRUE
Name: Text
Scrolling: TRUE
Inset: 0
ItemType: TEXT
Rect: 4,4,45,17
TextFont: Geneva
TextSize: 10
Name: Title
TextStyle: Bold
Text: Topics
ItemType: BOX
Rect: 206,0,395,20
Fill: Gray
ItemType: PUSH
Rect: 211,2,271,18
TextFont: Geneva
TextSize: 9
AutoSize: FALSE
Name: Print this
Script: --on mouseUp wdID,wdName,objNo,objName,objValue┬send printThisHelp to fld "scripter" of cd 1┬--end mouseUp
ItemType: PUSH
Rect: 278,2,389,18
TextFont: Geneva
TextSize: 9
Name: Create Help booklet
Script: --on mouseUp wdID,wdName,objNo,objName,objValue┬send printAllHelp to fld "scripter" of cd 1┬--end mouseUp